package com.lh.RMI案例;

import java.rmi.RemoteException;
import java.rmi.server.UnicastRemoteObject;

/**
 * 作者：idea
 * 日期：2018/7/3
 * 描述：
 */
public class ServiceImpl extends UnicastRemoteObject implements IService {
    protected ServiceImpl() throws RemoteException {
    }

    @Override
    public String queryName(String no) throws RemoteException {
        System.out.println("hello "+no);
        return String.valueOf(System.currentTimeMillis());
    }
}
